
sudo ipfs init
sudo ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
sudo ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
sudo dos2unix /root/LAMP2021/ipfs_new.service
sudo dos2unix /root/LAMP2021/http-ipfs-web3-poa-20210703.py
sudo dos2unix /root/LAMP2021/ipfs2bc-py-poa-20210703.service
sudo cp /root/LAMP2021/ipfs_new.service /lib/systemd/system/ipfs.service
sudo cp /root/LAMP2021/http-ipfs-web3-poa-20210703.py /root/pyipfs/ipfs2bc.py
sudo cp /root/LAMP2021/ipfs2bc-py-poa-20210703.service /lib/systemd/system/ipfs2bc.service
ipfs --version
sudo systemctl enable ipfs2bc.service
sudo systemctl enable ipfs.service
sudo systemctl start ipfs2bc.service
sudo systemctl start ipfs.service
# Get its PID
PID=$!
# Wait for 2 seconds
sleep 30
# Kill it
kill $PID

